//-----------------------------------------------------------------------
// <copyright file="NewsletterBase.cs" company="FetCo">
//     Copyright (c) FetCo. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace ADESSA.Entities
{
	[Serializable]
	public class NewsletterBase
	{
		
		#region Variable Declarations
		public static string _Table = "Newsletter";
		private int				newsletterId = 0;
		private string				title = string.Empty;
		private string				content = string.Empty;
		private int				order = 0;
		private DateTime				createdDate = new DateTime(1900,1,1,0,0,0,0);
		private DateTime				updatedDate = new DateTime(1900,1,1,0,0,0,0);
		#endregion
		
		#region Constructors
		public NewsletterBase() {}
		
		public NewsletterBase (
			int newsletterId,
			string title,
			string content,
			int order,
			DateTime createdDate,
			DateTime updatedDate)
		
		{
			this.newsletterId = newsletterId;
			this.title = title;
			this.content = content;
			this.order = order;
			this.createdDate = createdDate;
			this.updatedDate = updatedDate;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int NewsletterId
		{
			get { return newsletterId; }
			set { newsletterId = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Title
		{
			get { return title; }
			set { title = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is ntext</value>
		public string Content
		{
			get { return content; }
			set { content = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Order
		{
			get { return order; }
			set { order = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime CreatedDate
		{
			get { return createdDate; }
			set { createdDate = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime UpdatedDate
		{
			get { return updatedDate; }
			set { updatedDate = value; }
		}
	
		
		#endregion
	}//End Class
	
	public enum NewsletterColumns
	{
		NewsletterId,
		Title,
		Content,
		Order,
		CreatedDate,
		UpdatedDate
	}//End enum
}